Skip to content

[DRAFT][WebDriver BiDi] report download complete / canceled #11289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sadym-chromium
Copy link
Contributor

@sadym-chromium sadym-chromium commented May 7, 2025

Draft

This is an early draft of reporting download statuses complete / failed / canceled. Required for w3c/webdriver-bidi#894.

Build fails

The PR refers to "WebDriver BiDi download finished" which will be defined later after the general consensus on this approach is reached.

Refactoring

In order to provide the proper events' order, the "WebDriver BiDi download started" hook was moved into "handle as a download".
TODO: check if the <var>navigable</var> and <var>navigationId</var> really can be null there.

Specification

As long as the download processing is non-normative, the generic description was used:

  • "If the file downloading was canceled by user or by the user agent"
  • "If the file downloading faced any problems"
  • "When the file downloading successfully completed"
    TODO: check if it's possible to define the events using normative references.

TODO: check alternative

As long as the specification is non-normative, consider moving it into WebDriver BiDi specification.


<!--
Thank you for contributing to the HTML Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.

When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.

If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->

- [ ] At least two implementers are interested (and none opposed):
   * …
   * …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
   * Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
- [ ] Corresponding [HTML AAM](https://w3c.github.io/html-aam/) & [ARIA in HTML](https://w3c.github.io/html-aria/) issues & PRs:
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [ ] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

@sadym-chromium sadym-chromium changed the title [WebDriver BiDi] report download complete / failed / canceled [DRAFT][WebDriver BiDi] report download complete / failed / canceled May 14, 2025
@sadym-chromium sadym-chromium changed the title [DRAFT][WebDriver BiDi] report download complete / failed / canceled [DRAFT][WebDriver BiDi] report download complete / canceled May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant